<template>
  <div>
    <el-dialog title="地址详情" :visible.sync="dialogFormVisible">
      <el-form :model="form">
        <el-form-item label="收货地址" :label-width="formLabelWidth">
          <el-input v-model="form.name" autocomplete="off" />
        </el-form-item>
        <el-form-item label="收货人姓名" :label-width="formLabelWidth">
          <el-input v-model="form.name" autocomplete="off" />
        </el-form-item>
        <el-form-item label="收货人手机号" :label-width="formLabelWidth">
          <el-input v-model="form.name" autocomplete="off" />
        </el-form-item>
        <el-form-item label="邮政编码" :label-width="formLabelWidth">
          <el-input v-model="form.name" autocomplete="off" />
        </el-form-item>
        <el-form-item label="收货地址" :label-width="formLabelWidth">
          <el-cascader v-model="selectedOptions" size="large" :options="options" @change="handleChange" />
        </el-form-item>
        <el-form-item label="详细地址" :label-width="formLabelWidth">
          <el-input v-model="form.name" autocomplete="off" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { regionData, CodeToText } from 'element-china-area-data'
export default {
  components: {

  },
  props: {

  },
  data() {
    return {
      formLabelWidth: '120px',
      dialogFormVisible: false, // 控制弹出框显示隐藏
      options: regionData,
      selectedOptions: [],
      form: {}
    }
  },
  computed: {

  },
  watch: {

  },
  created() {

  },
  mounted() {

  },
  methods: {
    isDialogFormVisible() { // 弹出框显示
      this.dialogFormVisible = true
    }
  }
}
</script>

<style scoped lang="scss">

</style>
